
<?php
try {
  $dbh = new PDO('mysql:dbname=wpl_stock_market;host=54.149.39.9;port:3306', 'root', 'Feb@2014', 
      array(PDO::ATTR_PERSISTENT => true));
} catch (Exception $e) {
  die("Unable to connect: " . $e->getMessage());
}
?>